<?=$this->load->view('include_header',null)?>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
			<form id="form" method="POST" action="<?=site_url('order/ticket_update/'.$cateid)?>">
			<fieldset>
			<legend>签证预约入口</legend>
            <br>
			<font style="font-size:15px">您选择的户口或暂住地为：<font color=red><?echo $_SESSION['province_name']?></font>，签证预约领区参考如下：</font><br><br>
            <?
            foreach($result as $k=>$v) {
                echo "<b style='font-size:15px'>". $k ."</b><hr>【领区】：".$v['district']."<br>【提示】：". preg_replace("#((http|https)://[.\S]+)#i","<a href='\\1' target=_blank>\\1</a>",$v['remark']) ."<br><br>";
            }
            ?>
			</fieldset>
			</form>
			</div>

		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

	<script type="text/javascript">
	$().ready(function() {
	  $("#form").validate({
		rules: {
			name:{
			 required:true,
			 minlength:3
			},
			leave_date:{
			 required:true
			},
			reversal_date:{
			 required:true
			}
		}
	  });
		$( "#leave_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true,
			dayNamesShort: ["SU","MO","TU","WE","TH","FR","SA"],
			dateFormat: "DddM"
		});
		$( "#reversal_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true,
			dayNamesShort: ["SU","MO","TU","WE","TH","FR","SA"],
			dateFormat: "DddM"
		});
	});
	</script>
	
<?=$this->load->view('include_footer',null)?>
